import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'mdi:robot-excited-outline',
      keepAlive: true,
      order: 1000,
      title: 'Agent服务',
    },
    name: 'AgentPlatform',
    path: '/agentPlatform',
    children: [
      {
        meta: {
          title: 'Agent',
          icon: 'ant-design:robot-outlined',
        },
        name: 'Agent',
        path: '/agent-platform/agent',
        component: () => import('#/views/agent-platform/agent/index.vue'),
      },
      {
        meta: {
          title: 'AgentFlow',
          icon: 'ant-design:deployment-unit-outlined',
        },
        name: 'AgentFlow',
        path: '/agent-platform/agent-flow',
        component: () => import('#/views/agent-platform/agent-flow/index.vue'),
      },
      {
        meta: {
          title: '组件管理',
          icon: 'ant-design:appstore-outlined',
        },
        name: 'Component',
        path: '/agent-platform/component',
        component: () => import('#/views/agent-platform/component/index.vue'),
      },
    ],
  },
];

export default routes;
